package com.uex.dev.manage.admin.vo.project;

import com.uex.dev.manage.admin.po.ProjectFilesPO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author lzs
 * @create 2024/02/28
 * @description
 */
@Data
public class ProjectDeviceFileResp {
    @Schema(description = "文件名称")
    private String fileName;
    @Schema(description = "文件地址")
    private String fileUrl;

    public static ProjectDeviceFileResp fromPO(ProjectFilesPO projectFilesPO) {
        ProjectDeviceFileResp projectDeviceFileResp = new ProjectDeviceFileResp();
        BeanUtils.copyProperties(projectFilesPO, projectDeviceFileResp);
        return projectDeviceFileResp;
    }
}

